package com.rtx.edi.platform.jobextend.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rtx.edi.platform.jobextend.bean.po.PlJobDetail;
import com.rtx.edi.platform.jobextend.mapper.PlJobDetailMapper;
import com.rtx.edi.platform.jobextend.service.PlJobDetailService;

@Service
public class PlJobDetailServiceImpl extends ServiceImpl<PlJobDetailMapper, PlJobDetail> implements PlJobDetailService {

	@Override
	public void selectPage(Page<PlJobDetail> page, PlJobDetail po) {
		QueryWrapper<PlJobDetail> where = new QueryWrapper<PlJobDetail>();
		where.eq("job_id", po.getJobId());
		where.orderByDesc("job_id");
		baseMapper.selectPage(page, where);
	}
}
